<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo</title>
</head>
<body>
    <button onclick="send()">下发接口给 http</button>
</body>
<script src="./axios.min.js"></script>
<script>
    function send() {
        axios.post('http://127.0.0.1:3000/demo', {
            data: '123'
        }).then(res => {
            alert(res.data);
        }).catch(e => {
            console.log('e', e);
        }) 
    }
</script>
</html>